<?php if ( !bb_is_topic() ) : ?>
<p id="post-form-title-container">
	<label for="topic"><?php _e('Title'); ?>
		<input name="topic" type="text" id="topic" size="50" maxlength="100" tabindex="1" />
	</label>
</p>
<?php endif; do_action( 'post_form_pre_post' ); ?>
<?php if ( ! bb_is_user_logged_in() && ! bb_is_login_required() )  : 
	$current_commenter = bb_get_current_commenter();
?>
	<p id="post-form-author-container">
		<label for="author"><?php _e('Author (required)'); ?>
			<input type="text" name="author" id="author" size="50" aria-required="true" value="<?php echo esc_attr($current_commenter['comment_author']); ?>" />
		</label>
	</p>

	<p id="post-form-email-container">
		<label for="email"><?php _e('Email (required)'); ?>
			<input type="text" name="email" id="email" size="50" aria-required="true" value="<?php echo esc_attr($current_commenter['comment_author_email']); ?>" />
		</label>
	</p>

	<p id="post-form-url-container">
		<label for="url"><?php _e('URL'); ?>
			<input type="text" name="url" id="url" size="50" aria-required="true" value="<?php echo esc_attr($current_commenter['comment_author_url']); ?>" />
		</label>

	</p>
<?php endif; // end user not logged in but logins aren't required ?>

<p id="post-form-post-container">
	<label for="post_content"><?php _e('Post'); ?>
		<textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
	</label>
</p>
<p id="post-form-tags-container">
	<label for="tags-input"><?php printf(__('Tags (comma separated)'), bb_get_tag_page_link()) ?>
		<input id="tags-input" name="tags" type="text" size="50" maxlength="100" value="<?php bb_tag_name(); ?>" tabindex="4" />
	</label>
</p>
<?php if ( bb_is_tag() || bb_is_front() ) : ?>
<p id="post-form-forum-container">
	<label for="forum-id"><?php _e('Forum'); ?>
		<?php bb_new_topic_forum_dropdown(); ?>
	</label>
</p>
<?php endif; ?>
<p id="post-form-submit-container" class="submit">
  <input type="submit" id="postformsub" name="Submit" value="<?php echo esc_attr__( 'Send Post &raquo;' ); ?>" tabindex="4" />
</p>

<p id="post-form-allowed-container" class="allowed"><?php _e('Allowed markup:'); ?> <code><?php allowed_markup(); ?></code>. <br /><?php _e('You can also put code in between backtick ( <code>`</code> ) characters.'); ?></p>
